// class Parent {
//   static m(msg) {
//     console.log('static', msg)
//   }
//   m(msg) {
//     console.log('instance', msg)
//   }
// }

// class Child extends Parent {
//   constructor(name) {
//     super()
//     this.name = name
//   }

// }

// let child = new Child()
// child.m('88')
// Child.m('s')


class Parent {
  constructor() {
    this.name = "zf";
  }
  static m() {
    console.log('static', this.name)
  }
  m() {
    console.log('instance', this.name)
  }
}

class Child extends Parent {
  constructor(name) {
    super()
    this.name = name
  }

  print() {
    super.m()
  }
  static print2() {
    super.m()
  }
}

let child = new Child('ll')
child.m()
Child.print2()